﻿///////////////////////////////////////////////////////////////
// This is generated code. 
//////////////////////////////////////////////////////////////
// Code is generated using LLBLGen Pro version: 2.6
// Code is generated on: 02 November 2012 16:44:35
// Code is generated using templates: SD.TemplateBindings.SqlServerSpecific.NET20
// Templates vendor: Solutions Design.
// Templates version: 
//////////////////////////////////////////////////////////////
using System;
using System.Collections;
using System.Data;

using SD.LLBLGen.Pro.ORMSupportClasses;

namespace NetDon.OA.Data.HelperClasses
{
	/// <summary>
	/// Singleton implementation of the PersistenceInfoProvider. This class is the singleton wrapper through which the actual instance is retrieved.
	/// </summary>
	/// <remarks>It uses a single instance of an internal class. The access isn't marked with locks as the PersistenceInfoProviderBase class is threadsafe.</remarks>
	internal sealed class PersistenceInfoProviderSingleton
	{
		#region Class Member Declarations
		private static readonly IPersistenceInfoProvider _providerInstance = new PersistenceInfoProviderCore();
		#endregion
		
		/// <summary>private ctor to prevent instances of this class.</summary>
		private PersistenceInfoProviderSingleton()
		{
		}

		/// <summary>Dummy static constructor to make sure threadsafe initialization is performed.</summary>
		static PersistenceInfoProviderSingleton()
		{
		}

		/// <summary>Gets the singleton instance of the PersistenceInfoProviderCore</summary>
		/// <returns>Instance of the PersistenceInfoProvider.</returns>
		public static IPersistenceInfoProvider GetInstance()
		{
			return _providerInstance;
		}
	}

	/// <summary>Actual implementation of the PersistenceInfoProvider. Used by singleton wrapper.</summary>
	internal class PersistenceInfoProviderCore : PersistenceInfoProviderBase
	{
		/// <summary>Initializes a new instance of the <see cref="PersistenceInfoProviderCore"/> class.</summary>
		internal PersistenceInfoProviderCore()
		{
			Init();
		}

		/// <summary>Method which initializes the internal datastores with the structure of hierarchical types.</summary>
		private void Init()
		{
			base.InitClass((43 + 0));
			InitAreaEntityMappings();
			InitAttachmentsEntityMappings();
			InitCityEntityMappings();
			InitCompanyEntityMappings();
			InitConfigurationEntityMappings();
			InitCustomerGoodsShippingTypeEntityMappings();
			InitCustomerInfoEntityMappings();
			InitDeliveryOrderCodeConfigEntityMappings();
			InitDepartmentEntityMappings();
			InitDepartmentManagerEntityMappings();
			InitDictionaryEntityMappings();
			InitDictionaryCategoryEntityMappings();
			InitFunctionEntityMappings();
			InitGoodsTravelDaysConfigEntityMappings();
			InitImageEntityMappings();
			InitIssuingOrderEntityMappings();
			InitIssuingOrderDeliveryEntityMappings();
			InitIssuingOrderOnWayTrackEntityMappings();
			InitIssuingOrderOnWayTrackCommentEntityMappings();
			InitIssuingOrderOnWayTrackHistoryEntityMappings();
			InitIssuingOrderReceiptInfoTrackEntityMappings();
			InitIssuingOrderReceiptInfoTrackCommentEntityMappings();
			InitIssuingOrderVehicleInfoEntityMappings();
			InitLogEntityMappings();
			InitMachineAccountIncomeEntityMappings();
			InitMachineAccountPaymentEntityMappings();
			InitPostEntityMappings();
			InitProductEntityMappings();
			InitProvinceEntityMappings();
			InitReportEntityMappings();
			InitReportCategoryEntityMappings();
			InitRevenueMachineAccountEntityMappings();
			InitRevenueMachineAccountInvoiceEntityMappings();
			InitRevenueMachineAccountInvoiceOrderEntityMappings();
			InitRevenueMachineAccountInvoiceReceiptEntityMappings();
			InitRoleEntityMappings();
			InitRoleFunctionEntityMappings();
			InitRouteEntityMappings();
			InitShuntingCostConfigEntityMappings();
			InitSysParameterEntityMappings();
			InitUserEntityMappings();
			InitUserRoleEntityMappings();
			InitVehicleModelEntityMappings();

		}


		/// <summary>Inits AreaEntity's mappings</summary>
		private void InitAreaEntityMappings()
		{
			base.AddElementMapping( "AreaEntity", "eLogitics", @"dbo", "Area", 5 );
			base.AddElementFieldMapping( "AreaEntity", "AreaId", "AreaId", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 0 );
			base.AddElementFieldMapping( "AreaEntity", "Name", "Name", true, (int)SqlDbType.NVarChar, 60, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "AreaEntity", "CityId", "CityId", true, (int)SqlDbType.NVarChar, 6, 0, 0, false, "", null, typeof(System.String), 2 );
			base.AddElementFieldMapping( "AreaEntity", "Sequence", "Sequence", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 3 );
			base.AddElementFieldMapping( "AreaEntity", "CreateDate", "CreateDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 4 );
		}
		/// <summary>Inits AttachmentsEntity's mappings</summary>
		private void InitAttachmentsEntityMappings()
		{
			base.AddElementMapping( "AttachmentsEntity", "eLogitics", @"dbo", "Attachments", 10 );
			base.AddElementFieldMapping( "AttachmentsEntity", "Id", "Id", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 0 );
			base.AddElementFieldMapping( "AttachmentsEntity", "BusinessId", "BusinessId", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "AttachmentsEntity", "AttachmentType", "AttachmentType", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 2 );
			base.AddElementFieldMapping( "AttachmentsEntity", "DisplayName", "DisplayName", true, (int)SqlDbType.NVarChar, 100, 0, 0, false, "", null, typeof(System.String), 3 );
			base.AddElementFieldMapping( "AttachmentsEntity", "Postfix", "Postfix", true, (int)SqlDbType.NVarChar, 20, 0, 0, false, "", null, typeof(System.String), 4 );
			base.AddElementFieldMapping( "AttachmentsEntity", "FileName", "fileName", true, (int)SqlDbType.NVarChar, 100, 0, 0, false, "", null, typeof(System.String), 5 );
			base.AddElementFieldMapping( "AttachmentsEntity", "SavePath", "SavePath", true, (int)SqlDbType.NVarChar, 500, 0, 0, false, "", null, typeof(System.String), 6 );
			base.AddElementFieldMapping( "AttachmentsEntity", "Note", "Note", true, (int)SqlDbType.NVarChar, 500, 0, 0, false, "", null, typeof(System.String), 7 );
			base.AddElementFieldMapping( "AttachmentsEntity", "CreateDate", "CreateDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 8 );
			base.AddElementFieldMapping( "AttachmentsEntity", "ModifyDate", "ModifyDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 9 );
		}
		/// <summary>Inits CityEntity's mappings</summary>
		private void InitCityEntityMappings()
		{
			base.AddElementMapping( "CityEntity", "eLogitics", @"dbo", "City", 5 );
			base.AddElementFieldMapping( "CityEntity", "CityId", "CityId", false, (int)SqlDbType.NVarChar, 6, 0, 0, false, "", null, typeof(System.String), 0 );
			base.AddElementFieldMapping( "CityEntity", "Name", "Name", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "CityEntity", "ProvinceId", "ProvinceId", true, (int)SqlDbType.NVarChar, 6, 0, 0, false, "", null, typeof(System.String), 2 );
			base.AddElementFieldMapping( "CityEntity", "Sequence", "Sequence", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 3 );
			base.AddElementFieldMapping( "CityEntity", "CreateDate", "CreateDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 4 );
		}
		/// <summary>Inits CompanyEntity's mappings</summary>
		private void InitCompanyEntityMappings()
		{
			base.AddElementMapping( "CompanyEntity", "eLogitics", @"dbo", "Company", 14 );
			base.AddElementFieldMapping( "CompanyEntity", "CompanyId", "CompanyId", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 0 );
			base.AddElementFieldMapping( "CompanyEntity", "CompanyCode", "CompanyCode", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "CompanyEntity", "CompanyName", "CompanyName", true, (int)SqlDbType.NVarChar, 254, 0, 0, false, "", null, typeof(System.String), 2 );
			base.AddElementFieldMapping( "CompanyEntity", "CompanyDesc", "CompanyDesc", true, (int)SqlDbType.NText, 1073741823, 0, 0, false, "", null, typeof(System.String), 3 );
			base.AddElementFieldMapping( "CompanyEntity", "Address", "Address", true, (int)SqlDbType.NVarChar, 254, 0, 0, false, "", null, typeof(System.String), 4 );
			base.AddElementFieldMapping( "CompanyEntity", "PostCode", "PostCode", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 5 );
			base.AddElementFieldMapping( "CompanyEntity", "ParentCompanyId", "ParentCompanyId", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 6 );
			base.AddElementFieldMapping( "CompanyEntity", "Telephone", "Telephone", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 7 );
			base.AddElementFieldMapping( "CompanyEntity", "Fax", "Fax", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 8 );
			base.AddElementFieldMapping( "CompanyEntity", "Website", "Website", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 9 );
			base.AddElementFieldMapping( "CompanyEntity", "Email", "Email", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 10 );
			base.AddElementFieldMapping( "CompanyEntity", "NodeLevel", "NodeLevel", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 11 );
			base.AddElementFieldMapping( "CompanyEntity", "Ceo", "CEO", true, (int)SqlDbType.NVarChar, 512, 0, 0, false, "", null, typeof(System.String), 12 );
			base.AddElementFieldMapping( "CompanyEntity", "Ceoassistant", "CEOAssistant", true, (int)SqlDbType.NVarChar, 512, 0, 0, false, "", null, typeof(System.String), 13 );
		}
		/// <summary>Inits ConfigurationEntity's mappings</summary>
		private void InitConfigurationEntityMappings()
		{
			base.AddElementMapping( "ConfigurationEntity", "eLogitics", @"dbo", "Configuration", 4 );
			base.AddElementFieldMapping( "ConfigurationEntity", "Key", "Key", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 0 );
			base.AddElementFieldMapping( "ConfigurationEntity", "Value", "Value", false, (int)SqlDbType.NText, 1073741823, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "ConfigurationEntity", "Name", "Name", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 2 );
			base.AddElementFieldMapping( "ConfigurationEntity", "AreaId", "AreaId", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 3 );
		}
		/// <summary>Inits CustomerGoodsShippingTypeEntity's mappings</summary>
		private void InitCustomerGoodsShippingTypeEntityMappings()
		{
			base.AddElementMapping( "CustomerGoodsShippingTypeEntity", "eLogitics", @"dbo", "CustomerGoodsShippingType", 4 );
			base.AddElementFieldMapping( "CustomerGoodsShippingTypeEntity", "Id", "Id", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 0 );
			base.AddElementFieldMapping( "CustomerGoodsShippingTypeEntity", "GoodsShippedTypeId", "GoodsShippedTypeId", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 1 );
			base.AddElementFieldMapping( "CustomerGoodsShippingTypeEntity", "CustomerId", "CustomerId", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 2 );
			base.AddElementFieldMapping( "CustomerGoodsShippingTypeEntity", "AreaId", "AreaId", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 3 );
		}
		/// <summary>Inits CustomerInfoEntity's mappings</summary>
		private void InitCustomerInfoEntityMappings()
		{
			base.AddElementMapping( "CustomerInfoEntity", "eLogitics", @"dbo", "CustomerInfo", 21 );
			base.AddElementFieldMapping( "CustomerInfoEntity", "CustomerId", "CustomerId", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 0 );
			base.AddElementFieldMapping( "CustomerInfoEntity", "CustomerCode", "CustomerCode", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "CustomerInfoEntity", "CustomerName", "CustomerName", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 2 );
			base.AddElementFieldMapping( "CustomerInfoEntity", "Province", "Province", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 3 );
			base.AddElementFieldMapping( "CustomerInfoEntity", "City", "City", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 4 );
			base.AddElementFieldMapping( "CustomerInfoEntity", "Business", "Business", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 5 );
			base.AddElementFieldMapping( "CustomerInfoEntity", "CustomerSource", "CustomerSource", true, (int)SqlDbType.NVarChar, 256, 0, 0, false, "", null, typeof(System.String), 6 );
			base.AddElementFieldMapping( "CustomerInfoEntity", "ContactName", "ContactName", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 7 );
			base.AddElementFieldMapping( "CustomerInfoEntity", "Mobile", "Mobile", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 8 );
			base.AddElementFieldMapping( "CustomerInfoEntity", "Phone", "Phone", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 9 );
			base.AddElementFieldMapping( "CustomerInfoEntity", "Fax", "Fax", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 10 );
			base.AddElementFieldMapping( "CustomerInfoEntity", "Email", "Email", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 11 );
			base.AddElementFieldMapping( "CustomerInfoEntity", "Address", "Address", true, (int)SqlDbType.NVarChar, 500, 0, 0, false, "", null, typeof(System.String), 12 );
			base.AddElementFieldMapping( "CustomerInfoEntity", "Zipcode", "Zipcode", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 13 );
			base.AddElementFieldMapping( "CustomerInfoEntity", "Website", "Website", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 14 );
			base.AddElementFieldMapping( "CustomerInfoEntity", "Remark", "Remark", true, (int)SqlDbType.NVarChar, 2000, 0, 0, false, "", null, typeof(System.String), 15 );
			base.AddElementFieldMapping( "CustomerInfoEntity", "ContactPosition", "ContactPosition", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 16 );
			base.AddElementFieldMapping( "CustomerInfoEntity", "Introduction", "Introduction", true, (int)SqlDbType.NVarChar, 2000, 0, 0, false, "", null, typeof(System.String), 17 );
			base.AddElementFieldMapping( "CustomerInfoEntity", "Internation", "Internation", true, (int)SqlDbType.NVarChar, 256, 0, 0, false, "", null, typeof(System.String), 18 );
			base.AddElementFieldMapping( "CustomerInfoEntity", "IsChina", "IsChina", true, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 19 );
			base.AddElementFieldMapping( "CustomerInfoEntity", "AreaId", "AreaId", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 20 );
		}
		/// <summary>Inits DeliveryOrderCodeConfigEntity's mappings</summary>
		private void InitDeliveryOrderCodeConfigEntityMappings()
		{
			base.AddElementMapping( "DeliveryOrderCodeConfigEntity", "eLogitics", @"dbo", "DeliveryOrderCodeConfig", 4 );
			base.AddElementFieldMapping( "DeliveryOrderCodeConfigEntity", "Id", "Id", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 0 );
			base.AddElementFieldMapping( "DeliveryOrderCodeConfigEntity", "DeliveryCodeType", "DeliveryCodeType", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 1 );
			base.AddElementFieldMapping( "DeliveryOrderCodeConfigEntity", "DeliveryOrderCodePrefix", "DeliveryOrderCodePrefix", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 2 );
			base.AddElementFieldMapping( "DeliveryOrderCodeConfigEntity", "AreaId", "AreaId", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 3 );
		}
		/// <summary>Inits DepartmentEntity's mappings</summary>
		private void InitDepartmentEntityMappings()
		{
			base.AddElementMapping( "DepartmentEntity", "eLogitics", @"dbo", "Department", 11 );
			base.AddElementFieldMapping( "DepartmentEntity", "DepartId", "DepartId", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 0 );
			base.AddElementFieldMapping( "DepartmentEntity", "DepartName", "DepartName", true, (int)SqlDbType.NVarChar, 256, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "DepartmentEntity", "DepartCode", "DepartCode", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 2 );
			base.AddElementFieldMapping( "DepartmentEntity", "ParentDepartId", "ParentDepartId", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 3 );
			base.AddElementFieldMapping( "DepartmentEntity", "Telephone", "Telephone", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 4 );
			base.AddElementFieldMapping( "DepartmentEntity", "Fax", "Fax", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 5 );
			base.AddElementFieldMapping( "DepartmentEntity", "Address", "Address", true, (int)SqlDbType.NVarChar, 256, 0, 0, false, "", null, typeof(System.String), 6 );
			base.AddElementFieldMapping( "DepartmentEntity", "DepartDesc", "DepartDesc", true, (int)SqlDbType.NText, 1073741823, 0, 0, false, "", null, typeof(System.String), 7 );
			base.AddElementFieldMapping( "DepartmentEntity", "CompanyId", "CompanyId", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 8 );
			base.AddElementFieldMapping( "DepartmentEntity", "NodeLevel", "NodeLevel", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 9 );
			base.AddElementFieldMapping( "DepartmentEntity", "Manager", "Manager", true, (int)SqlDbType.NVarChar, 256, 0, 0, false, "", null, typeof(System.String), 10 );
		}
		/// <summary>Inits DepartmentManagerEntity's mappings</summary>
		private void InitDepartmentManagerEntityMappings()
		{
			base.AddElementMapping( "DepartmentManagerEntity", "eLogitics", @"dbo", "DepartmentManager", 3 );
			base.AddElementFieldMapping( "DepartmentManagerEntity", "DepartId", "DepartId", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 0 );
			base.AddElementFieldMapping( "DepartmentManagerEntity", "UserId", "UserId", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 1 );
			base.AddElementFieldMapping( "DepartmentManagerEntity", "ManagerOrder", "ManagerOrder", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 2 );
		}
		/// <summary>Inits DictionaryEntity's mappings</summary>
		private void InitDictionaryEntityMappings()
		{
			base.AddElementMapping( "DictionaryEntity", "eLogitics", @"dbo", "Dictionary", 5 );
			base.AddElementFieldMapping( "DictionaryEntity", "Oid", "OID", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 0 );
			base.AddElementFieldMapping( "DictionaryEntity", "TypeId", "TypeID", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 1 );
			base.AddElementFieldMapping( "DictionaryEntity", "Name", "Name", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 2 );
			base.AddElementFieldMapping( "DictionaryEntity", "Index", "Index", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 3 );
			base.AddElementFieldMapping( "DictionaryEntity", "FieldValue", "FieldValue", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 4 );
		}
		/// <summary>Inits DictionaryCategoryEntity's mappings</summary>
		private void InitDictionaryCategoryEntityMappings()
		{
			base.AddElementMapping( "DictionaryCategoryEntity", "eLogitics", @"dbo", "DictionaryCategory", 2 );
			base.AddElementFieldMapping( "DictionaryCategoryEntity", "Oid", "OID", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 0 );
			base.AddElementFieldMapping( "DictionaryCategoryEntity", "Name", "Name", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 1 );
		}
		/// <summary>Inits FunctionEntity's mappings</summary>
		private void InitFunctionEntityMappings()
		{
			base.AddElementMapping( "FunctionEntity", "eLogitics", @"dbo", "Function", 9 );
			base.AddElementFieldMapping( "FunctionEntity", "FunctionId", "FunctionID", false, (int)SqlDbType.VarChar, 300, 0, 0, false, "", null, typeof(System.String), 0 );
			base.AddElementFieldMapping( "FunctionEntity", "FunctionName", "FunctionName", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "FunctionEntity", "ParentId", "ParentID", false, (int)SqlDbType.VarChar, 300, 0, 0, false, "", null, typeof(System.String), 2 );
			base.AddElementFieldMapping( "FunctionEntity", "NavigateUrl", "NavigateUrl", true, (int)SqlDbType.NVarChar, 500, 0, 0, false, "", null, typeof(System.String), 3 );
			base.AddElementFieldMapping( "FunctionEntity", "Visible", "Visible", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 4 );
			base.AddElementFieldMapping( "FunctionEntity", "ImageUrl", "ImageUrl", true, (int)SqlDbType.NVarChar, 500, 0, 0, false, "", null, typeof(System.String), 5 );
			base.AddElementFieldMapping( "FunctionEntity", "Type", "Type", false, (int)SqlDbType.TinyInt, 0, 0, 3, false, "", null, typeof(System.Byte), 6 );
			base.AddElementFieldMapping( "FunctionEntity", "Index", "Index", false, (int)SqlDbType.SmallInt, 0, 0, 5, false, "", null, typeof(System.Int16), 7 );
			base.AddElementFieldMapping( "FunctionEntity", "Description", "Description", true, (int)SqlDbType.NVarChar, 500, 0, 0, false, "", null, typeof(System.String), 8 );
		}
		/// <summary>Inits GoodsTravelDaysConfigEntity's mappings</summary>
		private void InitGoodsTravelDaysConfigEntityMappings()
		{
			base.AddElementMapping( "GoodsTravelDaysConfigEntity", "eLogitics", @"dbo", "GoodsTravelDaysConfig", 11 );
			base.AddElementFieldMapping( "GoodsTravelDaysConfigEntity", "Id", "Id", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 0 );
			base.AddElementFieldMapping( "GoodsTravelDaysConfigEntity", "RouteTypeId", "RouteTypeId", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 1 );
			base.AddElementFieldMapping( "GoodsTravelDaysConfigEntity", "DeliveryCity", "DeliveryCity", false, (int)SqlDbType.NChar, 6, 0, 0, false, "", null, typeof(System.String), 2 );
			base.AddElementFieldMapping( "GoodsTravelDaysConfigEntity", "GoodsTravelDays", "GoodsTravelDays", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 3 );
			base.AddElementFieldMapping( "GoodsTravelDaysConfigEntity", "GoodsTravelDaysUnit", "GoodsTravelDaysUnit", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 4 );
			base.AddElementFieldMapping( "GoodsTravelDaysConfigEntity", "AreaId", "AreaId", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 5 );
			base.AddElementFieldMapping( "GoodsTravelDaysConfigEntity", "DeliveryProvince", "DeliveryProvince", false, (int)SqlDbType.NChar, 6, 0, 0, false, "", null, typeof(System.String), 6 );
			base.AddElementFieldMapping( "GoodsTravelDaysConfigEntity", "ReceiptOnWayDays", "ReceiptOnWayDays", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 7 );
			base.AddElementFieldMapping( "GoodsTravelDaysConfigEntity", "ReceiptOnWayDaysUnit", "ReceiptOnWayDaysUnit", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 8 );
			base.AddElementFieldMapping( "GoodsTravelDaysConfigEntity", "UnitCost", "UnitCost", true, (int)SqlDbType.Decimal, 0, 5, 18, false, "", null, typeof(System.Decimal), 9 );
			base.AddElementFieldMapping( "GoodsTravelDaysConfigEntity", "RevenueUnitCost", "RevenueUnitCost", true, (int)SqlDbType.Decimal, 0, 5, 18, false, "", null, typeof(System.Decimal), 10 );
		}
		/// <summary>Inits ImageEntity's mappings</summary>
		private void InitImageEntityMappings()
		{
			base.AddElementMapping( "ImageEntity", "eLogitics", @"dbo", "Image", 4 );
			base.AddElementFieldMapping( "ImageEntity", "ImageId", "ImageId", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 0 );
			base.AddElementFieldMapping( "ImageEntity", "ImagePath", "ImagePath", true, (int)SqlDbType.NVarChar, 500, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "ImageEntity", "ThumbnailPath", "ThumbnailPath", true, (int)SqlDbType.NVarChar, 500, 0, 0, false, "", null, typeof(System.String), 2 );
			base.AddElementFieldMapping( "ImageEntity", "StaffId", "StaffId", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 3 );
		}
		/// <summary>Inits IssuingOrderEntity's mappings</summary>
		private void InitIssuingOrderEntityMappings()
		{
			base.AddElementMapping( "IssuingOrderEntity", "eLogitics", @"dbo", "IssuingOrder", 41 );
			base.AddElementFieldMapping( "IssuingOrderEntity", "Id", "Id", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 0 );
			base.AddElementFieldMapping( "IssuingOrderEntity", "BusinessType", "BusinessType", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 1 );
			base.AddElementFieldMapping( "IssuingOrderEntity", "OrderCode", "OrderCode", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 2 );
			base.AddElementFieldMapping( "IssuingOrderEntity", "GoodsShippedTypeId", "GoodsShippedTypeId", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 3 );
			base.AddElementFieldMapping( "IssuingOrderEntity", "RouteTypeId", "RouteTypeId", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 4 );
			base.AddElementFieldMapping( "IssuingOrderEntity", "ReceivingOrderDate", "ReceivingOrderDate", false, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 5 );
			base.AddElementFieldMapping( "IssuingOrderEntity", "CustomerId", "CustomerId", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 6 );
			base.AddElementFieldMapping( "IssuingOrderEntity", "OrderVehicleNumber", "OrderVehicleNumber", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 7 );
			base.AddElementFieldMapping( "IssuingOrderEntity", "TransportationPlanCode", "TransportationPlanCode", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 8 );
			base.AddElementFieldMapping( "IssuingOrderEntity", "DeliveryProvince", "DeliveryProvince", false, (int)SqlDbType.NVarChar, 6, 0, 0, false, "", null, typeof(System.String), 9 );
			base.AddElementFieldMapping( "IssuingOrderEntity", "OrderVolumn", "OrderVolumn", true, (int)SqlDbType.Decimal, 0, 5, 18, false, "", null, typeof(System.Decimal), 10 );
			base.AddElementFieldMapping( "IssuingOrderEntity", "OrderWeight", "OrderWeight", true, (int)SqlDbType.Decimal, 0, 5, 18, false, "", null, typeof(System.Decimal), 11 );
			base.AddElementFieldMapping( "IssuingOrderEntity", "OrderQuantity", "OrderQuantity", true, (int)SqlDbType.Decimal, 0, 5, 18, false, "", null, typeof(System.Decimal), 12 );
			base.AddElementFieldMapping( "IssuingOrderEntity", "CheckoutType", "CheckoutType", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 13 );
			base.AddElementFieldMapping( "IssuingOrderEntity", "EntruckingDetails", "EntruckingDetails", true, (int)SqlDbType.NText, 1073741823, 0, 0, false, "", null, typeof(System.String), 14 );
			base.AddElementFieldMapping( "IssuingOrderEntity", "EntruckingAddress", "EntruckingAddress", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 15 );
			base.AddElementFieldMapping( "IssuingOrderEntity", "PlannedShippingDate", "PlannedShippingDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 16 );
			base.AddElementFieldMapping( "IssuingOrderEntity", "ActualShippingDate", "ActualShippingDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 17 );
			base.AddElementFieldMapping( "IssuingOrderEntity", "DelayedReasons", "DelayedReasons", true, (int)SqlDbType.NText, 1073741823, 0, 0, false, "", null, typeof(System.String), 18 );
			base.AddElementFieldMapping( "IssuingOrderEntity", "ShuntingCost", "ShuntingCost", false, (int)SqlDbType.Decimal, 0, 5, 18, false, "", null, typeof(System.Decimal), 19 );
			base.AddElementFieldMapping( "IssuingOrderEntity", "ShuntingPerson", "ShuntingPerson", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 20 );
			base.AddElementFieldMapping( "IssuingOrderEntity", "PaymentMethod", "PaymentMethod", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 21 );
			base.AddElementFieldMapping( "IssuingOrderEntity", "OnsiteOperator", "OnsiteOperator", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 22 );
			base.AddElementFieldMapping( "IssuingOrderEntity", "ActualEntruckingBoxAmount", "ActualEntruckingBoxAmount", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 23 );
			base.AddElementFieldMapping( "IssuingOrderEntity", "GoodsJiltedReasons", "GoodsJiltedReasons", true, (int)SqlDbType.NText, 1073741823, 0, 0, false, "", null, typeof(System.String), 24 );
			base.AddElementFieldMapping( "IssuingOrderEntity", "IsGoodsJilted", "IsGoodsJilted", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 25 );
			base.AddElementFieldMapping( "IssuingOrderEntity", "OnsiteEntruckingComments", "OnsiteEntruckingComments", true, (int)SqlDbType.NText, 1073741823, 0, 0, false, "", null, typeof(System.String), 26 );
			base.AddElementFieldMapping( "IssuingOrderEntity", "CreatedDate", "CreatedDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 27 );
			base.AddElementFieldMapping( "IssuingOrderEntity", "LastUpdatedDate", "LastUpdatedDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 28 );
			base.AddElementFieldMapping( "IssuingOrderEntity", "CreateBy", "CreateBy", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 29 );
			base.AddElementFieldMapping( "IssuingOrderEntity", "LastUpdatedBy", "LastUpdatedBy", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 30 );
			base.AddElementFieldMapping( "IssuingOrderEntity", "OrderStatus", "OrderStatus", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 31 );
			base.AddElementFieldMapping( "IssuingOrderEntity", "AreaId", "AreaId", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 32 );
			base.AddElementFieldMapping( "IssuingOrderEntity", "ShuntingCostExceptionsComment", "ShuntingCostExceptionsComment", true, (int)SqlDbType.NVarChar, 2147483647, 0, 0, false, "", null, typeof(System.String), 33 );
			base.AddElementFieldMapping( "IssuingOrderEntity", "StartShippmentDate", "StartShippmentDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 34 );
			base.AddElementFieldMapping( "IssuingOrderEntity", "ShuntingCostExceptionComments", "ShuntingCostExceptionComments", true, (int)SqlDbType.NVarChar, 2147483647, 0, 0, false, "", null, typeof(System.String), 35 );
			base.AddElementFieldMapping( "IssuingOrderEntity", "GoodsLeftBoxAmount", "GoodsLeftBoxAmount", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 36 );
			base.AddElementFieldMapping( "IssuingOrderEntity", "DelayedDays", "DelayedDays", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 37 );
			base.AddElementFieldMapping( "IssuingOrderEntity", "GoodsUnloadingCost", "GoodsUnloadingCost", true, (int)SqlDbType.Decimal, 0, 5, 18, false, "", null, typeof(System.Decimal), 38 );
			base.AddElementFieldMapping( "IssuingOrderEntity", "IsClientReturnVisit", "IsClientReturnVisit", true, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 39 );
			base.AddElementFieldMapping( "IssuingOrderEntity", "ClientTelephone", "ClientTelephone", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 40 );
		}
		/// <summary>Inits IssuingOrderDeliveryEntity's mappings</summary>
		private void InitIssuingOrderDeliveryEntityMappings()
		{
			base.AddElementMapping( "IssuingOrderDeliveryEntity", "eLogitics", @"dbo", "IssuingOrderDelivery", 22 );
			base.AddElementFieldMapping( "IssuingOrderDeliveryEntity", "Id", "Id", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 0 );
			base.AddElementFieldMapping( "IssuingOrderDeliveryEntity", "IssuingOrderId", "IssuingOrderId", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 1 );
			base.AddElementFieldMapping( "IssuingOrderDeliveryEntity", "DeliveryOrderCode", "DeliveryOrderCode", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 2 );
			base.AddElementFieldMapping( "IssuingOrderDeliveryEntity", "CreatedDate", "CreatedDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 3 );
			base.AddElementFieldMapping( "IssuingOrderDeliveryEntity", "LastUpdatedDate", "LastUpdatedDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 4 );
			base.AddElementFieldMapping( "IssuingOrderDeliveryEntity", "CreateBy", "CreateBy", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 5 );
			base.AddElementFieldMapping( "IssuingOrderDeliveryEntity", "LastUpdatedBy", "LastUpdatedBy", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 6 );
			base.AddElementFieldMapping( "IssuingOrderDeliveryEntity", "AreaId", "AreaId", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 7 );
			base.AddElementFieldMapping( "IssuingOrderDeliveryEntity", "Remark", "Remark", true, (int)SqlDbType.NVarChar, 2147483647, 0, 0, false, "", null, typeof(System.String), 8 );
			base.AddElementFieldMapping( "IssuingOrderDeliveryEntity", "DeliveryOrderType", "DeliveryOrderType", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 9 );
			base.AddElementFieldMapping( "IssuingOrderDeliveryEntity", "DeliveryAddress", "DeliveryAddress", true, (int)SqlDbType.NVarChar, 250, 0, 0, false, "", null, typeof(System.String), 10 );
			base.AddElementFieldMapping( "IssuingOrderDeliveryEntity", "DeliveryCity", "DeliveryCity", true, (int)SqlDbType.NVarChar, 6, 0, 0, false, "", null, typeof(System.String), 11 );
			base.AddElementFieldMapping( "IssuingOrderDeliveryEntity", "UnitCost", "UnitCost", true, (int)SqlDbType.Decimal, 0, 5, 18, false, "", null, typeof(System.Decimal), 12 );
			base.AddElementFieldMapping( "IssuingOrderDeliveryEntity", "OrderVolumn", "OrderVolumn", true, (int)SqlDbType.Decimal, 0, 5, 18, false, "", null, typeof(System.Decimal), 13 );
			base.AddElementFieldMapping( "IssuingOrderDeliveryEntity", "OrderWeight", "OrderWeight", true, (int)SqlDbType.Decimal, 0, 5, 18, false, "", null, typeof(System.Decimal), 14 );
			base.AddElementFieldMapping( "IssuingOrderDeliveryEntity", "OrderQuantity", "OrderQuantity", true, (int)SqlDbType.Decimal, 0, 5, 18, false, "", null, typeof(System.Decimal), 15 );
			base.AddElementFieldMapping( "IssuingOrderDeliveryEntity", "ActualEntruckingOrderVolumn", "ActualEntruckingOrderVolumn", true, (int)SqlDbType.Decimal, 0, 5, 18, false, "", null, typeof(System.Decimal), 16 );
			base.AddElementFieldMapping( "IssuingOrderDeliveryEntity", "ActualEntruckingOrderWeight", "ActualEntruckingOrderWeight", true, (int)SqlDbType.Decimal, 0, 5, 18, false, "", null, typeof(System.Decimal), 17 );
			base.AddElementFieldMapping( "IssuingOrderDeliveryEntity", "ActualEntruckingOrderQuantity", "ActualEntruckingOrderQuantity", true, (int)SqlDbType.Decimal, 0, 5, 18, false, "", null, typeof(System.Decimal), 18 );
			base.AddElementFieldMapping( "IssuingOrderDeliveryEntity", "RevenueUnitCost", "RevenueUnitCost", true, (int)SqlDbType.Decimal, 0, 5, 18, false, "", null, typeof(System.Decimal), 19 );
			base.AddElementFieldMapping( "IssuingOrderDeliveryEntity", "GoodsUnloadingPriceRatio", "GoodsUnloadingPriceRatio", true, (int)SqlDbType.Decimal, 0, 5, 18, false, "", null, typeof(System.Decimal), 20 );
			base.AddElementFieldMapping( "IssuingOrderDeliveryEntity", "ConvertedOrderVolumnWeight", "ConvertedOrderVolumnWeight", true, (int)SqlDbType.Decimal, 0, 5, 18, false, "", null, typeof(System.Decimal), 21 );
		}
		/// <summary>Inits IssuingOrderOnWayTrackEntity's mappings</summary>
		private void InitIssuingOrderOnWayTrackEntityMappings()
		{
			base.AddElementMapping( "IssuingOrderOnWayTrackEntity", "eLogitics", @"dbo", "IssuingOrderOnWayTrack", 17 );
			base.AddElementFieldMapping( "IssuingOrderOnWayTrackEntity", "Id", "Id", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 0 );
			base.AddElementFieldMapping( "IssuingOrderOnWayTrackEntity", "IssuingOrderId", "IssuingOrderId", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 1 );
			base.AddElementFieldMapping( "IssuingOrderOnWayTrackEntity", "AreaId", "AreaId", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 2 );
			base.AddElementFieldMapping( "IssuingOrderOnWayTrackEntity", "GoodsTravelDays", "GoodsTravelDays", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 3 );
			base.AddElementFieldMapping( "IssuingOrderOnWayTrackEntity", "GoodsTravelDaysUnit", "GoodsTravelDaysUnit", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 4 );
			base.AddElementFieldMapping( "IssuingOrderOnWayTrackEntity", "PlannedGoodsDeliveredDate", "PlannedGoodsDeliveredDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 5 );
			base.AddElementFieldMapping( "IssuingOrderOnWayTrackEntity", "GoodsCurrentPlace", "GoodsCurrentPlace", true, (int)SqlDbType.NVarChar, 2147483647, 0, 0, false, "", null, typeof(System.String), 6 );
			base.AddElementFieldMapping( "IssuingOrderOnWayTrackEntity", "ActualDeliveredDate", "ActualDeliveredDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 7 );
			base.AddElementFieldMapping( "IssuingOrderOnWayTrackEntity", "GoodsDelayedDays", "GoodsDelayedDays", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 8 );
			base.AddElementFieldMapping( "IssuingOrderOnWayTrackEntity", "IsGoodsDelayed", "IsGoodsDelayed", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 9 );
			base.AddElementFieldMapping( "IssuingOrderOnWayTrackEntity", "IsGoodsExceptional", "IsGoodsExceptional", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 10 );
			base.AddElementFieldMapping( "IssuingOrderOnWayTrackEntity", "CreatedDate", "CreatedDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 11 );
			base.AddElementFieldMapping( "IssuingOrderOnWayTrackEntity", "LastUpdatedDate", "LastUpdatedDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 12 );
			base.AddElementFieldMapping( "IssuingOrderOnWayTrackEntity", "CreateBy", "CreateBy", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 13 );
			base.AddElementFieldMapping( "IssuingOrderOnWayTrackEntity", "LastUpdatedBy", "LastUpdatedBy", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 14 );
			base.AddElementFieldMapping( "IssuingOrderOnWayTrackEntity", "LastGoodsCurrentPlaceUpdatedDate", "LastGoodsCurrentPlaceUpdatedDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 15 );
			base.AddElementFieldMapping( "IssuingOrderOnWayTrackEntity", "LastGoodsCurrentPlaceUpdatedBy", "LastGoodsCurrentPlaceUpdatedBy", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 16 );
		}
		/// <summary>Inits IssuingOrderOnWayTrackCommentEntity's mappings</summary>
		private void InitIssuingOrderOnWayTrackCommentEntityMappings()
		{
			base.AddElementMapping( "IssuingOrderOnWayTrackCommentEntity", "eLogitics", @"dbo", "IssuingOrderOnWayTrackComment", 5 );
			base.AddElementFieldMapping( "IssuingOrderOnWayTrackCommentEntity", "Id", "Id", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 0 );
			base.AddElementFieldMapping( "IssuingOrderOnWayTrackCommentEntity", "IssuingOrderOnWayTrackId", "IssuingOrderOnWayTrackId", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 1 );
			base.AddElementFieldMapping( "IssuingOrderOnWayTrackCommentEntity", "GoodsDelayedReasons", "GoodsDelayedReasons", false, (int)SqlDbType.NVarChar, 2147483647, 0, 0, false, "", null, typeof(System.String), 2 );
			base.AddElementFieldMapping( "IssuingOrderOnWayTrackCommentEntity", "Exceptions", "Exceptions", true, (int)SqlDbType.NVarChar, 2147483647, 0, 0, false, "", null, typeof(System.String), 3 );
			base.AddElementFieldMapping( "IssuingOrderOnWayTrackCommentEntity", "SolutionsForExceptions", "Remark", true, (int)SqlDbType.NVarChar, 2147483647, 0, 0, false, "", null, typeof(System.String), 4 );
		}
		/// <summary>Inits IssuingOrderOnWayTrackHistoryEntity's mappings</summary>
		private void InitIssuingOrderOnWayTrackHistoryEntityMappings()
		{
			base.AddElementMapping( "IssuingOrderOnWayTrackHistoryEntity", "eLogitics", @"dbo", "IssuingOrderOnWayTrackHistory", 4 );
			base.AddElementFieldMapping( "IssuingOrderOnWayTrackHistoryEntity", "IssuingOrderOnWayTrackId", "IssuingOrderOnWayTrackId", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 0 );
			base.AddElementFieldMapping( "IssuingOrderOnWayTrackHistoryEntity", "GoodsCurrentPlace", "GoodsCurrentPlace", true, (int)SqlDbType.NVarChar, 2147483647, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "IssuingOrderOnWayTrackHistoryEntity", "LastUpdatedDate", "LastUpdatedDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 2 );
			base.AddElementFieldMapping( "IssuingOrderOnWayTrackHistoryEntity", "LastUpdatedBy", "LastUpdatedBy", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 3 );
		}
		/// <summary>Inits IssuingOrderReceiptInfoTrackEntity's mappings</summary>
		private void InitIssuingOrderReceiptInfoTrackEntityMappings()
		{
			base.AddElementMapping( "IssuingOrderReceiptInfoTrackEntity", "eLogitics", @"dbo", "IssuingOrderReceiptInfoTrack", 17 );
			base.AddElementFieldMapping( "IssuingOrderReceiptInfoTrackEntity", "Id", "Id", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 0 );
			base.AddElementFieldMapping( "IssuingOrderReceiptInfoTrackEntity", "IssuingOrderId", "IssuingOrderId", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 1 );
			base.AddElementFieldMapping( "IssuingOrderReceiptInfoTrackEntity", "AreaId", "AreaId", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 2 );
			base.AddElementFieldMapping( "IssuingOrderReceiptInfoTrackEntity", "IssuingOrderDeliveryId", "IssuingOrderDeliveryId", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 3 );
			base.AddElementFieldMapping( "IssuingOrderReceiptInfoTrackEntity", "ReceiptInfoCopies", "ReceiptInfoCopies", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 4 );
			base.AddElementFieldMapping( "IssuingOrderReceiptInfoTrackEntity", "ReceiptOnWayDays", "ReceiptOnWayDays", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 5 );
			base.AddElementFieldMapping( "IssuingOrderReceiptInfoTrackEntity", "ReceiptOnWayDaysUnit", "ReceiptOnWayDaysUnit", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 6 );
			base.AddElementFieldMapping( "IssuingOrderReceiptInfoTrackEntity", "ReceiptInfoPlannedResponseDate", "ReceiptInfoPlannedResponseDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 7 );
			base.AddElementFieldMapping( "IssuingOrderReceiptInfoTrackEntity", "ReceiptInfoActualResponseDate", "ReceiptInfoActualResponseDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 8 );
			base.AddElementFieldMapping( "IssuingOrderReceiptInfoTrackEntity", "ReceiptInfoDelayedDays", "ReceiptInfoDelayedDays", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 9 );
			base.AddElementFieldMapping( "IssuingOrderReceiptInfoTrackEntity", "ReceiptInfoNotReceived", "ReceiptInfoNotReceived", true, (int)SqlDbType.NVarChar, 2147483647, 0, 0, false, "", null, typeof(System.String), 10 );
			base.AddElementFieldMapping( "IssuingOrderReceiptInfoTrackEntity", "CreatedDate", "CreatedDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 11 );
			base.AddElementFieldMapping( "IssuingOrderReceiptInfoTrackEntity", "LastUpdatedDate", "LastUpdatedDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 12 );
			base.AddElementFieldMapping( "IssuingOrderReceiptInfoTrackEntity", "CreateBy", "CreateBy", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 13 );
			base.AddElementFieldMapping( "IssuingOrderReceiptInfoTrackEntity", "LastUpdatedBy", "LastUpdatedBy", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 14 );
			base.AddElementFieldMapping( "IssuingOrderReceiptInfoTrackEntity", "IsReceiptInfoDelayed", "IsReceiptInfoDelayed", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 15 );
			base.AddElementFieldMapping( "IssuingOrderReceiptInfoTrackEntity", "IsReceiptInfoExceptional", "IsReceiptInfoExceptional", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 16 );
		}
		/// <summary>Inits IssuingOrderReceiptInfoTrackCommentEntity's mappings</summary>
		private void InitIssuingOrderReceiptInfoTrackCommentEntityMappings()
		{
			base.AddElementMapping( "IssuingOrderReceiptInfoTrackCommentEntity", "eLogitics", @"dbo", "IssuingOrderReceiptInfoTrackComment", 4 );
			base.AddElementFieldMapping( "IssuingOrderReceiptInfoTrackCommentEntity", "Id", "Id", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 0 );
			base.AddElementFieldMapping( "IssuingOrderReceiptInfoTrackCommentEntity", "ReceiptInfoExceptions", "ReceiptInfoExceptions", true, (int)SqlDbType.NVarChar, 2147483647, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "IssuingOrderReceiptInfoTrackCommentEntity", "IssuingOrderReceiptInfoTrackId", "IssuingOrderReceiptInfoTrackId", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 2 );
			base.AddElementFieldMapping( "IssuingOrderReceiptInfoTrackCommentEntity", "Remark", "Remark", true, (int)SqlDbType.NVarChar, 2147483647, 0, 0, false, "", null, typeof(System.String), 3 );
		}
		/// <summary>Inits IssuingOrderVehicleInfoEntity's mappings</summary>
		private void InitIssuingOrderVehicleInfoEntityMappings()
		{
			base.AddElementMapping( "IssuingOrderVehicleInfoEntity", "eLogitics", @"dbo", "IssuingOrderVehicleInfo", 12 );
			base.AddElementFieldMapping( "IssuingOrderVehicleInfoEntity", "Id", "Id", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 0 );
			base.AddElementFieldMapping( "IssuingOrderVehicleInfoEntity", "IssuingOrderId", "IssuingOrderId", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 1 );
			base.AddElementFieldMapping( "IssuingOrderVehicleInfoEntity", "VehicleNumber", "VehicleNumber", true, (int)SqlDbType.NVarChar, 20, 0, 0, false, "", null, typeof(System.String), 2 );
			base.AddElementFieldMapping( "IssuingOrderVehicleInfoEntity", "DriverName", "DriverName", true, (int)SqlDbType.NVarChar, 20, 0, 0, false, "", null, typeof(System.String), 3 );
			base.AddElementFieldMapping( "IssuingOrderVehicleInfoEntity", "DriverTelephone", "DriverTelephone", true, (int)SqlDbType.NVarChar, 20, 0, 0, false, "", null, typeof(System.String), 4 );
			base.AddElementFieldMapping( "IssuingOrderVehicleInfoEntity", "DriverAppointedDate", "DriverAppointedDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 5 );
			base.AddElementFieldMapping( "IssuingOrderVehicleInfoEntity", "DriverOnboardDate", "DriverOnboardDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 6 );
			base.AddElementFieldMapping( "IssuingOrderVehicleInfoEntity", "DriverDelayedHours", "DriverDelayedHours", true, (int)SqlDbType.Decimal, 0, 5, 18, false, "", null, typeof(System.Decimal), 7 );
			base.AddElementFieldMapping( "IssuingOrderVehicleInfoEntity", "DriverDelayedReasons", "DriverDelayedReasons", true, (int)SqlDbType.NText, 1073741823, 0, 0, false, "", null, typeof(System.String), 8 );
			base.AddElementFieldMapping( "IssuingOrderVehicleInfoEntity", "CarSharingPrice", "CarSharingPrice", true, (int)SqlDbType.Decimal, 0, 5, 18, false, "", null, typeof(System.Decimal), 9 );
			base.AddElementFieldMapping( "IssuingOrderVehicleInfoEntity", "AreaId", "AreaId", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 10 );
			base.AddElementFieldMapping( "IssuingOrderVehicleInfoEntity", "VechicleModel", "VechicleModel", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 11 );
		}
		/// <summary>Inits LogEntity's mappings</summary>
		private void InitLogEntityMappings()
		{
			base.AddElementMapping( "LogEntity", "eLogitics", @"dbo", "Log", 8 );
			base.AddElementFieldMapping( "LogEntity", "LogId", "LogId", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 0 );
			base.AddElementFieldMapping( "LogEntity", "Source", "Source", false, (int)SqlDbType.NVarChar, 1000, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "LogEntity", "UserName", "UserName", true, (int)SqlDbType.NVarChar, 256, 0, 0, false, "", null, typeof(System.String), 2 );
			base.AddElementFieldMapping( "LogEntity", "Message", "Message", true, (int)SqlDbType.NText, 1073741823, 0, 0, false, "", null, typeof(System.String), 3 );
			base.AddElementFieldMapping( "LogEntity", "LogTime", "LogTime", false, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 4 );
			base.AddElementFieldMapping( "LogEntity", "ApplicationName", "ApplicationName", false, (int)SqlDbType.NVarChar, 256, 0, 0, false, "", null, typeof(System.String), 5 );
			base.AddElementFieldMapping( "LogEntity", "Category", "Category", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 6 );
			base.AddElementFieldMapping( "LogEntity", "Level", "Level", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 7 );
		}
		/// <summary>Inits MachineAccountIncomeEntity's mappings</summary>
		private void InitMachineAccountIncomeEntityMappings()
		{
			base.AddElementMapping( "MachineAccountIncomeEntity", "eLogitics", @"dbo", "MachineAccountIncome", 12 );
			base.AddElementFieldMapping( "MachineAccountIncomeEntity", "Id", "Id", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 0 );
			base.AddElementFieldMapping( "MachineAccountIncomeEntity", "OrderCode", "OrderCode", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "MachineAccountIncomeEntity", "AreaId", "AreaId", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 2 );
			base.AddElementFieldMapping( "MachineAccountIncomeEntity", "PaymentOrIncomeDate", "PaymentOrIncomeDate", false, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 3 );
			base.AddElementFieldMapping( "MachineAccountIncomeEntity", "IncomeType", "IncomeType", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 4 );
			base.AddElementFieldMapping( "MachineAccountIncomeEntity", "IncomeAmount", "IncomeAmount", false, (int)SqlDbType.Decimal, 0, 3, 18, false, "", null, typeof(System.Decimal), 5 );
			base.AddElementFieldMapping( "MachineAccountIncomeEntity", "OtherIncome", "OtherIncome", false, (int)SqlDbType.Decimal, 0, 3, 18, false, "", null, typeof(System.Decimal), 6 );
			base.AddElementFieldMapping( "MachineAccountIncomeEntity", "CreatedDate", "CreatedDate", false, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 7 );
			base.AddElementFieldMapping( "MachineAccountIncomeEntity", "LastUpdatedDate", "LastUpdatedDate", false, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 8 );
			base.AddElementFieldMapping( "MachineAccountIncomeEntity", "CreateBy", "CreateBy", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 9 );
			base.AddElementFieldMapping( "MachineAccountIncomeEntity", "LastUpdatedBy", "LastUpdatedBy", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 10 );
			base.AddElementFieldMapping( "MachineAccountIncomeEntity", "IssuingOrderId", "IssuingOrderId", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 11 );
		}
		/// <summary>Inits MachineAccountPaymentEntity's mappings</summary>
		private void InitMachineAccountPaymentEntityMappings()
		{
			base.AddElementMapping( "MachineAccountPaymentEntity", "eLogitics", @"dbo", "MachineAccountPayment", 16 );
			base.AddElementFieldMapping( "MachineAccountPaymentEntity", "Id", "Id", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 0 );
			base.AddElementFieldMapping( "MachineAccountPaymentEntity", "OrderCode", "OrderCode", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "MachineAccountPaymentEntity", "AreaId", "AreaId", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 2 );
			base.AddElementFieldMapping( "MachineAccountPaymentEntity", "PaymentOrIncomeDate", "PaymentOrIncomeDate", false, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 3 );
			base.AddElementFieldMapping( "MachineAccountPaymentEntity", "TransportationPlanCode", "TransportationPlanCode", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 4 );
			base.AddElementFieldMapping( "MachineAccountPaymentEntity", "TobePaidShippingCost", "TobePaidShippingCost", false, (int)SqlDbType.Decimal, 0, 5, 18, false, "", null, typeof(System.Decimal), 5 );
			base.AddElementFieldMapping( "MachineAccountPaymentEntity", "OtherAmountFromManufactor", "OtherAmountFromManufactor", false, (int)SqlDbType.Decimal, 0, 5, 18, false, "", null, typeof(System.Decimal), 6 );
			base.AddElementFieldMapping( "MachineAccountPaymentEntity", "PaymentMethod", "PaymentMethod", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 7 );
			base.AddElementFieldMapping( "MachineAccountPaymentEntity", "DeductionExceptionsAmount", "DeductionExceptionsAmount", false, (int)SqlDbType.Decimal, 0, 5, 18, false, "", null, typeof(System.Decimal), 8 );
			base.AddElementFieldMapping( "MachineAccountPaymentEntity", "DeductionExceptionsComments", "DeductionExceptionsComments", true, (int)SqlDbType.NVarChar, 2147483647, 0, 0, false, "", null, typeof(System.String), 9 );
			base.AddElementFieldMapping( "MachineAccountPaymentEntity", "CreatedDate", "CreatedDate", false, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 10 );
			base.AddElementFieldMapping( "MachineAccountPaymentEntity", "LastUpdatedDate", "LastUpdatedDate", false, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 11 );
			base.AddElementFieldMapping( "MachineAccountPaymentEntity", "CreateBy", "CreateBy", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 12 );
			base.AddElementFieldMapping( "MachineAccountPaymentEntity", "LastUpdatedBy", "LastUpdatedBy", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 13 );
			base.AddElementFieldMapping( "MachineAccountPaymentEntity", "IssuingOrderId", "IssuingOrderId", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 14 );
			base.AddElementFieldMapping( "MachineAccountPaymentEntity", "IsFlag", "IsFlag", true, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 15 );
		}
		/// <summary>Inits PostEntity's mappings</summary>
		private void InitPostEntityMappings()
		{
			base.AddElementMapping( "PostEntity", "eLogitics", @"dbo", "Post", 6 );
			base.AddElementFieldMapping( "PostEntity", "PostId", "PostId", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 0 );
			base.AddElementFieldMapping( "PostEntity", "PostName", "PostName", true, (int)SqlDbType.NVarChar, 256, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "PostEntity", "PostLevel", "PostLevel", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 2 );
			base.AddElementFieldMapping( "PostEntity", "ParentPostId", "ParentPostId", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 3 );
			base.AddElementFieldMapping( "PostEntity", "Comments", "Comments", true, (int)SqlDbType.NVarChar, 512, 0, 0, false, "", null, typeof(System.String), 4 );
			base.AddElementFieldMapping( "PostEntity", "NodeLevel", "NodeLevel", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 5 );
		}
		/// <summary>Inits ProductEntity's mappings</summary>
		private void InitProductEntityMappings()
		{
			base.AddElementMapping( "ProductEntity", "eLogitics", @"dbo", "Product", 15 );
			base.AddElementFieldMapping( "ProductEntity", "ProductId", "ProductId", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 0 );
			base.AddElementFieldMapping( "ProductEntity", "ProductNature", "ProductNature", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 1 );
			base.AddElementFieldMapping( "ProductEntity", "ParentProductTypeId", "ParentProductTypeId", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 2 );
			base.AddElementFieldMapping( "ProductEntity", "ProductTypeId", "ProductTypeId", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 3 );
			base.AddElementFieldMapping( "ProductEntity", "ProductNo", "ProductNo", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 4 );
			base.AddElementFieldMapping( "ProductEntity", "ProductName", "ProductName", true, (int)SqlDbType.NVarChar, 254, 0, 0, false, "", null, typeof(System.String), 5 );
			base.AddElementFieldMapping( "ProductEntity", "SingleSpecification", "SingleSpecification", true, (int)SqlDbType.NVarChar, 254, 0, 0, false, "", null, typeof(System.String), 6 );
			base.AddElementFieldMapping( "ProductEntity", "IntegralSpecification", "IntegralSpecification", true, (int)SqlDbType.NVarChar, 254, 0, 0, false, "", null, typeof(System.String), 7 );
			base.AddElementFieldMapping( "ProductEntity", "ReferencedPrice", "ReferencedPrice", true, (int)SqlDbType.Decimal, 0, 2, 8, false, "", null, typeof(System.Decimal), 8 );
			base.AddElementFieldMapping( "ProductEntity", "DiscountPrice", "DiscountPrice", true, (int)SqlDbType.Decimal, 0, 2, 8, false, "", null, typeof(System.Decimal), 9 );
			base.AddElementFieldMapping( "ProductEntity", "Unit", "Unit", true, (int)SqlDbType.NVarChar, 10, 0, 0, false, "", null, typeof(System.String), 10 );
			base.AddElementFieldMapping( "ProductEntity", "ProductIntroduction", "ProductIntroduction", true, (int)SqlDbType.NText, 1073741823, 0, 0, false, "", null, typeof(System.String), 11 );
			base.AddElementFieldMapping( "ProductEntity", "Package", "Package", true, (int)SqlDbType.NVarChar, 254, 0, 0, false, "", null, typeof(System.String), 12 );
			base.AddElementFieldMapping( "ProductEntity", "PackingInstruction", "PackingInstruction", true, (int)SqlDbType.NVarChar, 254, 0, 0, false, "", null, typeof(System.String), 13 );
			base.AddElementFieldMapping( "ProductEntity", "CutOff", "CutOff", true, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 14 );
		}
		/// <summary>Inits ProvinceEntity's mappings</summary>
		private void InitProvinceEntityMappings()
		{
			base.AddElementMapping( "ProvinceEntity", "eLogitics", @"dbo", "Province", 4 );
			base.AddElementFieldMapping( "ProvinceEntity", "ProvinceId", "ProvinceId", false, (int)SqlDbType.NVarChar, 6, 0, 0, false, "", null, typeof(System.String), 0 );
			base.AddElementFieldMapping( "ProvinceEntity", "Name", "Name", true, (int)SqlDbType.NVarChar, 40, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "ProvinceEntity", "Sequence", "Sequence", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 2 );
			base.AddElementFieldMapping( "ProvinceEntity", "CreateDate", "CreateDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 3 );
		}
		/// <summary>Inits ReportEntity's mappings</summary>
		private void InitReportEntityMappings()
		{
			base.AddElementMapping( "ReportEntity", "eLogitics", @"dbo", "Report", 5 );
			base.AddElementFieldMapping( "ReportEntity", "ReportId", "ReportId", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 0 );
			base.AddElementFieldMapping( "ReportEntity", "ReportName", "ReportName", false, (int)SqlDbType.NVarChar, 256, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "ReportEntity", "CategoryId", "CategoryId", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 2 );
			base.AddElementFieldMapping( "ReportEntity", "FileName", "FileName", false, (int)SqlDbType.NVarChar, 256, 0, 0, false, "", null, typeof(System.String), 3 );
			base.AddElementFieldMapping( "ReportEntity", "DataSource", "DataSource", true, (int)SqlDbType.NVarChar, 255, 0, 0, false, "", null, typeof(System.String), 4 );
		}
		/// <summary>Inits ReportCategoryEntity's mappings</summary>
		private void InitReportCategoryEntityMappings()
		{
			base.AddElementMapping( "ReportCategoryEntity", "eLogitics", @"dbo", "ReportCategory", 2 );
			base.AddElementFieldMapping( "ReportCategoryEntity", "CategoryId", "CategoryId", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 0 );
			base.AddElementFieldMapping( "ReportCategoryEntity", "CategoryName", "CategoryName", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 1 );
		}
		/// <summary>Inits RevenueMachineAccountEntity's mappings</summary>
		private void InitRevenueMachineAccountEntityMappings()
		{
			base.AddElementMapping( "RevenueMachineAccountEntity", "eLogitics", @"dbo", "RevenueMachineAccount", 22 );
			base.AddElementFieldMapping( "RevenueMachineAccountEntity", "Id", "Id", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 0 );
			base.AddElementFieldMapping( "RevenueMachineAccountEntity", "OrderCode", "OrderCode", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "RevenueMachineAccountEntity", "AreaId", "AreaId", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 2 );
			base.AddElementFieldMapping( "RevenueMachineAccountEntity", "TransportationPlanCode", "TransportationPlanCode", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 3 );
			base.AddElementFieldMapping( "RevenueMachineAccountEntity", "Subsidy", "Subsidy", false, (int)SqlDbType.Decimal, 0, 5, 18, false, "", null, typeof(System.Decimal), 4 );
			base.AddElementFieldMapping( "RevenueMachineAccountEntity", "IsStatementofAccountCompleted", "IsStatementofAccountCompleted", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 5 );
			base.AddElementFieldMapping( "RevenueMachineAccountEntity", "ConfirmStatementofAccountDate", "ConfirmStatementofAccountDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 6 );
			base.AddElementFieldMapping( "RevenueMachineAccountEntity", "DueInvoiceDate", "DueInvoiceDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 7 );
			base.AddElementFieldMapping( "RevenueMachineAccountEntity", "IsInvoiced", "IsInvoiced", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 8 );
			base.AddElementFieldMapping( "RevenueMachineAccountEntity", "ConfirmInvoiceDate", "ConfirmInvoiceDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 9 );
			base.AddElementFieldMapping( "RevenueMachineAccountEntity", "IsAccountsReceivable", "IsAccountsReceivable", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 10 );
			base.AddElementFieldMapping( "RevenueMachineAccountEntity", "AccountsReceivableDate", "AccountsReceivableDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 11 );
			base.AddElementFieldMapping( "RevenueMachineAccountEntity", "ConfirmAccountsReceiptDate", "ConfirmAccountsReceiptDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 12 );
			base.AddElementFieldMapping( "RevenueMachineAccountEntity", "Exceptions", "Exceptions", true, (int)SqlDbType.NVarChar, 2147483647, 0, 0, false, "", null, typeof(System.String), 13 );
			base.AddElementFieldMapping( "RevenueMachineAccountEntity", "CreatedDate", "CreatedDate", false, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 14 );
			base.AddElementFieldMapping( "RevenueMachineAccountEntity", "LastUpdatedDate", "LastUpdatedDate", false, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 15 );
			base.AddElementFieldMapping( "RevenueMachineAccountEntity", "CreateBy", "CreateBy", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 16 );
			base.AddElementFieldMapping( "RevenueMachineAccountEntity", "LastUpdatedBy", "LastUpdatedBy", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 17 );
			base.AddElementFieldMapping( "RevenueMachineAccountEntity", "IssuingOrderId", "IssuingOrderId", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 18 );
			base.AddElementFieldMapping( "RevenueMachineAccountEntity", "OtherRevenue", "OtherRevenue", false, (int)SqlDbType.Decimal, 0, 5, 18, false, "", null, typeof(System.Decimal), 19 );
			base.AddElementFieldMapping( "RevenueMachineAccountEntity", "CarSharingCostWithFactory", "CarSharingCostWithFactory", false, (int)SqlDbType.Decimal, 0, 5, 18, false, "", null, typeof(System.Decimal), 20 );
			base.AddElementFieldMapping( "RevenueMachineAccountEntity", "UnConfirmStatementofAccountComments", "UnConfirmStatementofAccountComments", true, (int)SqlDbType.NVarChar, 2147483647, 0, 0, false, "", null, typeof(System.String), 21 );
		}
		/// <summary>Inits RevenueMachineAccountInvoiceEntity's mappings</summary>
		private void InitRevenueMachineAccountInvoiceEntityMappings()
		{
			base.AddElementMapping( "RevenueMachineAccountInvoiceEntity", "eLogitics", @"dbo", "RevenueMachineAccountInvoice", 23 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceEntity", "Id", "Id", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 0 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceEntity", "AreaId", "AreaId", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 1 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceEntity", "RouteTypeId", "RouteTypeId", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 2 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceEntity", "CustomerId", "CustomerId", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 3 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceEntity", "ExpenseDescription", "ExpenseDescription", true, (int)SqlDbType.NVarChar, 2147483647, 0, 0, false, "", null, typeof(System.String), 4 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceEntity", "ConfirmInvoiceDate", "ConfirmInvoiceDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 5 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceEntity", "InvoiceNo", "InvoiceNO", true, (int)SqlDbType.NVarChar, 255, 0, 0, false, "", null, typeof(System.String), 6 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceEntity", "InvoiceType", "InvoiceType", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 7 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceEntity", "InvoiceCurrencyType", "InvoiceCurrencyType", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 8 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceEntity", "StateofAccountAmount", "StateofAccountAmount", true, (int)SqlDbType.Decimal, 0, 5, 18, false, "", null, typeof(System.Decimal), 9 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceEntity", "InvoiceAmount", "InvoiceAmount", true, (int)SqlDbType.Decimal, 0, 5, 18, false, "", null, typeof(System.Decimal), 10 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceEntity", "InvoiceDescription", "InvoiceDescription", true, (int)SqlDbType.NVarChar, 2147483647, 0, 0, false, "", null, typeof(System.String), 11 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceEntity", "AccountsReceivableDate", "AccountsReceivableDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 12 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceEntity", "CreatedDate", "CreatedDate", false, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 13 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceEntity", "LastUpdatedDate", "LastUpdatedDate", false, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 14 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceEntity", "CreateBy", "CreateBy", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 15 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceEntity", "LastUpdatedBy", "LastUpdatedBy", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 16 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceEntity", "AccountReceiptExceptions", "AccountReceiptExceptions", true, (int)SqlDbType.NVarChar, 2147483647, 0, 0, false, "", null, typeof(System.String), 17 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceEntity", "IsAccountReceiptExceptions", "IsAccountReceiptExceptions", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 18 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceEntity", "AccountReceiptComments", "AccountReceiptComments", true, (int)SqlDbType.NVarChar, 2147483647, 0, 0, false, "", null, typeof(System.String), 19 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceEntity", "TotalAccountReceiptAmount", "TotalAccountReceiptAmount", true, (int)SqlDbType.Decimal, 0, 5, 18, false, "", null, typeof(System.Decimal), 20 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceEntity", "IsAccountReceiptCompleted", "IsAccountReceiptCompleted", true, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 21 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceEntity", "ConfirmAccountsReceivableDate", "ConfirmAccountsReceivableDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 22 );
		}
		/// <summary>Inits RevenueMachineAccountInvoiceOrderEntity's mappings</summary>
		private void InitRevenueMachineAccountInvoiceOrderEntityMappings()
		{
			base.AddElementMapping( "RevenueMachineAccountInvoiceOrderEntity", "eLogitics", @"dbo", "RevenueMachineAccountInvoiceOrder", 9 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceOrderEntity", "Id", "Id", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 0 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceOrderEntity", "AreaId", "AreaId", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 1 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceOrderEntity", "RevenueMachineAccountId", "RevenueMachineAccountId", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 2 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceOrderEntity", "OrderCode", "OrderCode", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 3 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceOrderEntity", "CreatedDate", "CreatedDate", false, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 4 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceOrderEntity", "LastUpdatedDate", "LastUpdatedDate", false, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 5 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceOrderEntity", "CreateBy", "CreateBy", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 6 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceOrderEntity", "LastUpdatedBy", "LastUpdatedBy", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 7 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceOrderEntity", "RevenueMachineAccountInvoiceId", "RevenueMachineAccountInvoiceId", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 8 );
		}
		/// <summary>Inits RevenueMachineAccountInvoiceReceiptEntity's mappings</summary>
		private void InitRevenueMachineAccountInvoiceReceiptEntityMappings()
		{
			base.AddElementMapping( "RevenueMachineAccountInvoiceReceiptEntity", "eLogitics", @"dbo", "RevenueMachineAccountInvoiceReceipt", 14 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceReceiptEntity", "Id", "Id", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 0 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceReceiptEntity", "AreaId", "AreaId", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 1 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceReceiptEntity", "RevenueMachineAccountInvoiceId", "RevenueMachineAccountInvoiceId", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 2 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceReceiptEntity", "BankNoteNo", "BankNoteNO", true, (int)SqlDbType.NVarChar, 255, 0, 0, false, "", null, typeof(System.String), 3 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceReceiptEntity", "CurrencyType", "CurrencyType", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 4 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceReceiptEntity", "AccountsReceiptAmount", "AccountsReceiptAmount", true, (int)SqlDbType.Decimal, 0, 5, 18, false, "", null, typeof(System.Decimal), 5 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceReceiptEntity", "AccountsReceiptType", "AccountsReceiptType", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 6 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceReceiptEntity", "ConfirmAccountsReceiptDate", "ConfirmAccountsReceiptDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 7 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceReceiptEntity", "BillOfExchangeDueDate", "BillOfExchangeDueDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 8 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceReceiptEntity", "Comments", "Comments", true, (int)SqlDbType.NVarChar, 2147483647, 0, 0, false, "", null, typeof(System.String), 9 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceReceiptEntity", "CreatedDate", "CreatedDate", false, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 10 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceReceiptEntity", "LastUpdatedDate", "LastUpdatedDate", false, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 11 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceReceiptEntity", "CreateBy", "CreateBy", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 12 );
			base.AddElementFieldMapping( "RevenueMachineAccountInvoiceReceiptEntity", "LastUpdatedBy", "LastUpdatedBy", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 13 );
		}
		/// <summary>Inits RoleEntity's mappings</summary>
		private void InitRoleEntityMappings()
		{
			base.AddElementMapping( "RoleEntity", "eLogitics", @"dbo", "Role", 2 );
			base.AddElementFieldMapping( "RoleEntity", "RoleId", "RoleID", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 0 );
			base.AddElementFieldMapping( "RoleEntity", "RoleName", "RoleName", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 1 );
		}
		/// <summary>Inits RoleFunctionEntity's mappings</summary>
		private void InitRoleFunctionEntityMappings()
		{
			base.AddElementMapping( "RoleFunctionEntity", "eLogitics", @"dbo", "RoleFunction", 2 );
			base.AddElementFieldMapping( "RoleFunctionEntity", "RoleId", "RoleID", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 0 );
			base.AddElementFieldMapping( "RoleFunctionEntity", "FunctionId", "FunctionID", false, (int)SqlDbType.VarChar, 300, 0, 0, false, "", null, typeof(System.String), 1 );
		}
		/// <summary>Inits RouteEntity's mappings</summary>
		private void InitRouteEntityMappings()
		{
			base.AddElementMapping( "RouteEntity", "eLogitics", @"dbo", "Route", 6 );
			base.AddElementFieldMapping( "RouteEntity", "Id", "Id", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 0 );
			base.AddElementFieldMapping( "RouteEntity", "RouteName", "RouteName", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "RouteEntity", "TransportationPrefix", "TransportationPrefix", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 2 );
			base.AddElementFieldMapping( "RouteEntity", "RouteDescription", "RouteDescription", true, (int)SqlDbType.NVarChar, 2147483647, 0, 0, false, "", null, typeof(System.String), 3 );
			base.AddElementFieldMapping( "RouteEntity", "DeliveryOrderCodePrefix", "DeliveryOrderCodePrefix", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 4 );
			base.AddElementFieldMapping( "RouteEntity", "AreaId", "AreaId", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 5 );
		}
		/// <summary>Inits ShuntingCostConfigEntity's mappings</summary>
		private void InitShuntingCostConfigEntityMappings()
		{
			base.AddElementMapping( "ShuntingCostConfigEntity", "eLogitics", @"dbo", "ShuntingCostConfig", 8 );
			base.AddElementFieldMapping( "ShuntingCostConfigEntity", "Id", "Id", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 0 );
			base.AddElementFieldMapping( "ShuntingCostConfigEntity", "DeliveryCity", "DeliveryCity", false, (int)SqlDbType.NChar, 6, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "ShuntingCostConfigEntity", "RouteTypeId", "RouteTypeId", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 2 );
			base.AddElementFieldMapping( "ShuntingCostConfigEntity", "AreaId", "AreaId", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 3 );
			base.AddElementFieldMapping( "ShuntingCostConfigEntity", "UnitCost", "UnitCost", true, (int)SqlDbType.Decimal, 0, 5, 18, false, "", null, typeof(System.Decimal), 4 );
			base.AddElementFieldMapping( "ShuntingCostConfigEntity", "ShuntingCost", "ShuntingCost", true, (int)SqlDbType.Decimal, 0, 5, 18, false, "", null, typeof(System.Decimal), 5 );
			base.AddElementFieldMapping( "ShuntingCostConfigEntity", "CheckoutType", "CheckoutType", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 6 );
			base.AddElementFieldMapping( "ShuntingCostConfigEntity", "DeliveryProvince", "DeliveryProvince", false, (int)SqlDbType.NChar, 6, 0, 0, false, "", null, typeof(System.String), 7 );
		}
		/// <summary>Inits SysParameterEntity's mappings</summary>
		private void InitSysParameterEntityMappings()
		{
			base.AddElementMapping( "SysParameterEntity", "eLogitics", @"dbo", "Sys_Parameter", 17 );
			base.AddElementFieldMapping( "SysParameterEntity", "ParameterId", "Parameter_ID", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 0 );
			base.AddElementFieldMapping( "SysParameterEntity", "ParaString", "ParaString", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "SysParameterEntity", "ParaValue", "ParaValue", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 2 );
			base.AddElementFieldMapping( "SysParameterEntity", "ParaGroup", "ParaGroup", true, (int)SqlDbType.NVarChar, 20, 0, 0, false, "", null, typeof(System.String), 3 );
			base.AddElementFieldMapping( "SysParameterEntity", "ParentParameterId", "ParentParameter_ID", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 4 );
			base.AddElementFieldMapping( "SysParameterEntity", "Sfpara", "SFPara", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 5 );
			base.AddElementFieldMapping( "SysParameterEntity", "SfEffective", "sfEffective", true, (int)SqlDbType.TinyInt, 0, 0, 3, false, "", null, typeof(System.Byte), 6 );
			base.AddElementFieldMapping( "SysParameterEntity", "SRemark", "sRemark", true, (int)SqlDbType.NVarChar, 200, 0, 0, false, "", null, typeof(System.String), 7 );
			base.AddElementFieldMapping( "SysParameterEntity", "IOrderNum", "iOrderNum", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 8 );
			base.AddElementFieldMapping( "SysParameterEntity", "Standby1", "Standby1", true, (int)SqlDbType.NVarChar, 100, 0, 0, false, "", null, typeof(System.String), 9 );
			base.AddElementFieldMapping( "SysParameterEntity", "Standby2", "Standby2", true, (int)SqlDbType.NVarChar, 100, 0, 0, false, "", null, typeof(System.String), 10 );
			base.AddElementFieldMapping( "SysParameterEntity", "Standby3", "Standby3", true, (int)SqlDbType.NVarChar, 100, 0, 0, false, "", null, typeof(System.String), 11 );
			base.AddElementFieldMapping( "SysParameterEntity", "Standby4", "Standby4", true, (int)SqlDbType.NVarChar, 100, 0, 0, false, "", null, typeof(System.String), 12 );
			base.AddElementFieldMapping( "SysParameterEntity", "AddUser", "AddUser", true, (int)SqlDbType.NVarChar, 20, 0, 0, false, "", null, typeof(System.String), 13 );
			base.AddElementFieldMapping( "SysParameterEntity", "AddTime", "AddTime", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 14 );
			base.AddElementFieldMapping( "SysParameterEntity", "ModUser", "ModUser", true, (int)SqlDbType.NVarChar, 20, 0, 0, false, "", null, typeof(System.String), 15 );
			base.AddElementFieldMapping( "SysParameterEntity", "ModTime", "ModTime", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 16 );
		}
		/// <summary>Inits UserEntity's mappings</summary>
		private void InitUserEntityMappings()
		{
			base.AddElementMapping( "UserEntity", "eLogitics", @"dbo", "User", 19 );
			base.AddElementFieldMapping( "UserEntity", "UserId", "UserId", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 0 );
			base.AddElementFieldMapping( "UserEntity", "FullName", "FullName", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "UserEntity", "UserName", "UserName", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 2 );
			base.AddElementFieldMapping( "UserEntity", "Password", "Password", true, (int)SqlDbType.NVarChar, 100, 0, 0, false, "", null, typeof(System.String), 3 );
			base.AddElementFieldMapping( "UserEntity", "Address", "Address", true, (int)SqlDbType.NVarChar, 200, 0, 0, false, "", null, typeof(System.String), 4 );
			base.AddElementFieldMapping( "UserEntity", "Phone", "Phone", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 5 );
			base.AddElementFieldMapping( "UserEntity", "Mobile", "Mobile", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 6 );
			base.AddElementFieldMapping( "UserEntity", "Email", "Email", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 7 );
			base.AddElementFieldMapping( "UserEntity", "Type", "Type", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 8 );
			base.AddElementFieldMapping( "UserEntity", "CompanyId", "CompanyId", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 9 );
			base.AddElementFieldMapping( "UserEntity", "DepartId", "DepartId", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 10 );
			base.AddElementFieldMapping( "UserEntity", "PositionId", "PositionId", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 11 );
			base.AddElementFieldMapping( "UserEntity", "CreateDate", "CreateDate", false, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 12 );
			base.AddElementFieldMapping( "UserEntity", "NickName", "NickName", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 13 );
			base.AddElementFieldMapping( "UserEntity", "Gender", "Gender", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 14 );
			base.AddElementFieldMapping( "UserEntity", "Birthday", "Birthday", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 15 );
			base.AddElementFieldMapping( "UserEntity", "UserStatus", "UserStatus", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 16 );
			base.AddElementFieldMapping( "UserEntity", "EmailPassword", "EmailPassword", true, (int)SqlDbType.NVarChar, 20, 0, 0, false, "", null, typeof(System.String), 17 );
			base.AddElementFieldMapping( "UserEntity", "Remarks", "Remarks", true, (int)SqlDbType.NVarChar, 500, 0, 0, false, "", null, typeof(System.String), 18 );
		}
		/// <summary>Inits UserRoleEntity's mappings</summary>
		private void InitUserRoleEntityMappings()
		{
			base.AddElementMapping( "UserRoleEntity", "eLogitics", @"dbo", "UserRole", 2 );
			base.AddElementFieldMapping( "UserRoleEntity", "UserId", "UserId", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 0 );
			base.AddElementFieldMapping( "UserRoleEntity", "RoleId", "RoleId", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 1 );
		}
		/// <summary>Inits VehicleModelEntity's mappings</summary>
		private void InitVehicleModelEntityMappings()
		{
			base.AddElementMapping( "VehicleModelEntity", "eLogitics", @"dbo", "VehicleModel", 7 );
			base.AddElementFieldMapping( "VehicleModelEntity", "Id", "Id", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 0 );
			base.AddElementFieldMapping( "VehicleModelEntity", "ModelName", "ModelName", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "VehicleModelEntity", "Width", "Width", true, (int)SqlDbType.Decimal, 0, 5, 18, false, "", null, typeof(System.Decimal), 2 );
			base.AddElementFieldMapping( "VehicleModelEntity", "Length", "Length", true, (int)SqlDbType.Decimal, 0, 5, 18, false, "", null, typeof(System.Decimal), 3 );
			base.AddElementFieldMapping( "VehicleModelEntity", "Height", "Height", true, (int)SqlDbType.Decimal, 0, 5, 18, false, "", null, typeof(System.Decimal), 4 );
			base.AddElementFieldMapping( "VehicleModelEntity", "ModelDescription", "ModelDescription", true, (int)SqlDbType.NVarChar, 2147483647, 0, 0, false, "", null, typeof(System.String), 5 );
			base.AddElementFieldMapping( "VehicleModelEntity", "AreaId", "AreaId", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 6 );
		}

	}
}